import request from '@/utils/request'

export function getAll(params) {
    return request({
        url: '/product/getAll',
        method: 'get',
        params
    })
}
export function delById(params){
    return request({
        url: '/product/delete',
        method: 'get',
        params
    })
}
export function batchDel(data){
    return request({
        url: '/product/batchDel',
        method: 'post',
        data
    })
}

export function add(data){
    return request({
        url: '/product/add',
        method: 'post',
        data
    })
}
export function update(data){
    return request({
        url: '/product/update',
        method: 'post',
        data
    })

} 
export function getProductList(data) {
    return request({
        url: '/product/list',
        method: 'post',
        data
    })
}
export function getInRepertory(params){
    return request({
        url: '/product/getInRepertory',
        method: 'get',
        params
    })

}
export function getOutRepertory(params) {
    return request({
        url: '/product/getOutRepertory',
        method: 'get',
        params
    })

}
export function outRepertory(data){
    return request({
        url: '/product/outRepertory',
        method: 'post',
        data
    })

}

export function inRepertory(data){
    return request({
        url: '/product/inRepertory',
        method: 'post',
        data
    })

}